<%@taglib uri="/WEB-INF/tld/c.tld" prefix="c"%>
<%@taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html"%>
<%@attribute name="action"  required="true"%>
<%@attribute name="name" required="true" %>
<%@attribute name="id" %>
<c:if test="${not empty name}">
    <c:set var="form" value="${name}" scope="request"/>
</c:if>

<c:if test="${empty id}">
    <c:set var="id" value="${name}"/>
</c:if>

<html:form styleId="${id}" action="${action}" styleClass="form">
    <jsp:doBody/>
</html:form>